#ifndef BOARD_H
#define BOARD_H

#include "Cell.h"

class Board
{
public:
	Board();
	virtual ~Board();

	void Clear();
	unsigned int Size() const;
	void Resize(unsigned int width, unsigned int height);


	void Move(GameObject* object, unsigned int cellX, unsigned int cellY);
	
	// Test code
	void Print();

	

protected:
private:
	Cell* GetCell(unsigned int cellX, unsigned int cellY);
	unsigned int Index(unsigned int cellX, unsigned int cellY);
	bool InsideBoard(unsigned int cellX, unsigned int cellY);

	Cell* cells;
	unsigned int boardWidth;
	unsigned int boardHeight;
};

#endif //BOARD_H
